﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class m_Hierarchy2 : DataObject
    {
        [Column]
        public string SAP_Code { get { return _SAP_Code; } set { _SAP_Code = value; EntityState.FieldChange("SAP_Code"); } }
        private string _SAP_Code;
        public static FieldInfo sAP_Code = new FieldInfo("m_Hierarchy2", "SAP_Code");

      
        
        [Column]
        public string New_Industry_Code3 { get { return _New_Industry_Code3; } set { _New_Industry_Code3 = value; EntityState.FieldChange("New_Industry_Code3"); } }
        private string _New_Industry_Code3;
        public static FieldInfo new_Industry_Code3 = new FieldInfo("m_Hierarchy2", "New_Industry_Code3");
        
        
        [Column]
        public string Name { get { return _Name; } set { _Name = value; EntityState.FieldChange("Name"); } }
        private string _Name;
        public static FieldInfo name = new FieldInfo("m_Hierarchy2", "Name");

        [Column]
        public string Desc_ZH { get { return _Desc_ZH; } set { _Desc_ZH = value; EntityState.FieldChange("Desc_ZH"); } }
        private string _Desc_ZH;
        public static FieldInfo desc_ZH = new FieldInfo("m_Hierarchy2", "Desc_ZH");

        [Column]
        public string Desc_EN { get { return _Desc_EN; } set { _Desc_EN = value; EntityState.FieldChange("Desc_EN"); } }
        private string _Desc_EN;
        public static FieldInfo desc_EN = new FieldInfo("m_Hierarchy2", "Desc_EN");

        [Column]
        public string Remark { get { return _Remark; } set { _Remark = value; EntityState.FieldChange("Remark"); } }
        private string _Remark;
        public static FieldInfo remark = new FieldInfo("m_Hierarchy2", "Remark");
        


        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("m_Hierarchy2", "Time");

        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("m_Hierarchy2", "Status");
    }
}